﻿using PcProject.Domain.Models.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PcProject.Domain.IRepository
{
    /// <summary>
    /// 商品分类接口
    /// </summary>
    public interface IProCateRepository
    {
        //商品分类模块方法接口
        /// <summary>
        /// 商品分类显示分页
        /// </summary>
        /// <param name="pname">查询参数</param>
        /// <param name="pageIndex">页数</param>
        /// <param name="pageSize">条数</param>
        /// <param name="totalCount">总条数</param>
        /// <returns></returns>
        List<ProductCategory> GetProCatesAsync(/*int pageIndex, int pageSize, out int totalCount*/);

        /// <summary>
        /// 商品分类添加
        /// </summary>
        /// <param name="obj">表单参数</param>
        /// <returns></returns>
        Task<int> InserAsync(ProductCategory obj);

        /// <summary>
        /// 商品分类删除
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<int> DeleAsync(int id);

        /// <summary>
        /// 商品分类反填
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<ProductCategory> FillAsync(int id);

        /// <summary>
        /// 商品分类修改
        /// </summary>
        /// <param name="obj">表单参数</param>
        /// <returns></returns>
        Task<int> UptAsync(ProductCategory obj);

    }
}
